﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Windows.Media.Imaging;
using HappyFrog.NavigateService;

namespace HappyFrog.SilverlightPage
{
    public partial class GameModeList : PhoneApplicationPage
    {
        public GameModeList()
        {
            InitializeComponent();
            LoadImage();
        }

        private void LoadImage()
        {
            BitmapImage traditionModeImage = new BitmapImage(new Uri("/Resource/Image/TraditionModeImage.png", UriKind.Relative));
            TraditionModeImage.Source = traditionModeImage;

            BitmapImage rightBrainModeImage = new BitmapImage(new Uri("/Resource/Image/RightBrainMode.png", UriKind.Relative));
            RightBrainModeImage.Source = rightBrainModeImage;

            BitmapImage vSModeImage = new BitmapImage(new Uri("/Resource/Image/VSMode.png", UriKind.Relative));
            VSModeImage.Source = vSModeImage;

            BitmapImage createSceneModeImage = new BitmapImage(new Uri("/Resource/Image/CreateSceneMode.png", UriKind.Relative));
            CreateSceneModeImage.Source = createSceneModeImage;
        }

        private void TraditionModeImage_Tap(object sender, GestureEventArgs e)
        {

        }

        private void RightBrainModeImage_Tap(object sender, GestureEventArgs e)
        {

        }

        private void VSModeImage_Tap(object sender, GestureEventArgs e)
        {

        }

        private void CreateSceneModeImage_Tap(object sender, GestureEventArgs e)
        {
            NavigationService.Navigate(UriList.GetInstance().GetPageUri("SceneNamed.xaml"));
        }

        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {

        }

        private void ApplicationBarIconButton_GameGrade_Click(object sender, EventArgs e)
        {         
            NavigationService.Navigate(UriList.GetInstance().GetPageUri("ChooseGameGrade.xaml"));
        }
    }
}